package com.spring.cloud.examples.listener;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class MessageListener {

    @KafkaListener(topics = {"test_message"}, groupId = "test_message_group")
    public void reciveMessage(ConsumerRecord<String, String> record) {
        System.out.println("recive message"+record);
    }

}
